package com.local.model;

import java.util.ArrayList;
import java.util.List;

public class LocalParklotExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public LocalParklotExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andParklotUuidIsNull() {
            addCriterion("parklot_uuid is null");
            return (Criteria) this;
        }

        public Criteria andParklotUuidIsNotNull() {
            addCriterion("parklot_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andParklotUuidEqualTo(String value) {
            addCriterion("parklot_uuid =", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidNotEqualTo(String value) {
            addCriterion("parklot_uuid <>", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidGreaterThan(String value) {
            addCriterion("parklot_uuid >", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidGreaterThanOrEqualTo(String value) {
            addCriterion("parklot_uuid >=", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidLessThan(String value) {
            addCriterion("parklot_uuid <", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidLessThanOrEqualTo(String value) {
            addCriterion("parklot_uuid <=", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidLike(String value) {
            addCriterion("parklot_uuid like", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidNotLike(String value) {
            addCriterion("parklot_uuid not like", value, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidIn(List<String> values) {
            addCriterion("parklot_uuid in", values, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidNotIn(List<String> values) {
            addCriterion("parklot_uuid not in", values, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidBetween(String value1, String value2) {
            addCriterion("parklot_uuid between", value1, value2, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andParklotUuidNotBetween(String value1, String value2) {
            addCriterion("parklot_uuid not between", value1, value2, "parklotUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidIsNull() {
            addCriterion("site_uuid is null");
            return (Criteria) this;
        }

        public Criteria andSiteUuidIsNotNull() {
            addCriterion("site_uuid is not null");
            return (Criteria) this;
        }

        public Criteria andSiteUuidEqualTo(String value) {
            addCriterion("site_uuid =", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidNotEqualTo(String value) {
            addCriterion("site_uuid <>", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidGreaterThan(String value) {
            addCriterion("site_uuid >", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidGreaterThanOrEqualTo(String value) {
            addCriterion("site_uuid >=", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidLessThan(String value) {
            addCriterion("site_uuid <", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidLessThanOrEqualTo(String value) {
            addCriterion("site_uuid <=", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidLike(String value) {
            addCriterion("site_uuid like", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidNotLike(String value) {
            addCriterion("site_uuid not like", value, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidIn(List<String> values) {
            addCriterion("site_uuid in", values, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidNotIn(List<String> values) {
            addCriterion("site_uuid not in", values, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidBetween(String value1, String value2) {
            addCriterion("site_uuid between", value1, value2, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andSiteUuidNotBetween(String value1, String value2) {
            addCriterion("site_uuid not between", value1, value2, "siteUuid");
            return (Criteria) this;
        }

        public Criteria andParklotNoIsNull() {
            addCriterion("parklot_no is null");
            return (Criteria) this;
        }

        public Criteria andParklotNoIsNotNull() {
            addCriterion("parklot_no is not null");
            return (Criteria) this;
        }

        public Criteria andParklotNoEqualTo(String value) {
            addCriterion("parklot_no =", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoNotEqualTo(String value) {
            addCriterion("parklot_no <>", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoGreaterThan(String value) {
            addCriterion("parklot_no >", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoGreaterThanOrEqualTo(String value) {
            addCriterion("parklot_no >=", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoLessThan(String value) {
            addCriterion("parklot_no <", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoLessThanOrEqualTo(String value) {
            addCriterion("parklot_no <=", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoLike(String value) {
            addCriterion("parklot_no like", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoNotLike(String value) {
            addCriterion("parklot_no not like", value, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoIn(List<String> values) {
            addCriterion("parklot_no in", values, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoNotIn(List<String> values) {
            addCriterion("parklot_no not in", values, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoBetween(String value1, String value2) {
            addCriterion("parklot_no between", value1, value2, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotNoNotBetween(String value1, String value2) {
            addCriterion("parklot_no not between", value1, value2, "parklotNo");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateIsNull() {
            addCriterion("parklot_coordinate is null");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateIsNotNull() {
            addCriterion("parklot_coordinate is not null");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateEqualTo(String value) {
            addCriterion("parklot_coordinate =", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateNotEqualTo(String value) {
            addCriterion("parklot_coordinate <>", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateGreaterThan(String value) {
            addCriterion("parklot_coordinate >", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateGreaterThanOrEqualTo(String value) {
            addCriterion("parklot_coordinate >=", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateLessThan(String value) {
            addCriterion("parklot_coordinate <", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateLessThanOrEqualTo(String value) {
            addCriterion("parklot_coordinate <=", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateLike(String value) {
            addCriterion("parklot_coordinate like", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateNotLike(String value) {
            addCriterion("parklot_coordinate not like", value, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateIn(List<String> values) {
            addCriterion("parklot_coordinate in", values, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateNotIn(List<String> values) {
            addCriterion("parklot_coordinate not in", values, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateBetween(String value1, String value2) {
            addCriterion("parklot_coordinate between", value1, value2, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotCoordinateNotBetween(String value1, String value2) {
            addCriterion("parklot_coordinate not between", value1, value2, "parklotCoordinate");
            return (Criteria) this;
        }

        public Criteria andParklotStatusIsNull() {
            addCriterion("parklot_status is null");
            return (Criteria) this;
        }

        public Criteria andParklotStatusIsNotNull() {
            addCriterion("parklot_status is not null");
            return (Criteria) this;
        }

        public Criteria andParklotStatusEqualTo(String value) {
            addCriterion("parklot_status =", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusNotEqualTo(String value) {
            addCriterion("parklot_status <>", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusGreaterThan(String value) {
            addCriterion("parklot_status >", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusGreaterThanOrEqualTo(String value) {
            addCriterion("parklot_status >=", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusLessThan(String value) {
            addCriterion("parklot_status <", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusLessThanOrEqualTo(String value) {
            addCriterion("parklot_status <=", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusLike(String value) {
            addCriterion("parklot_status like", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusNotLike(String value) {
            addCriterion("parklot_status not like", value, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusIn(List<String> values) {
            addCriterion("parklot_status in", values, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusNotIn(List<String> values) {
            addCriterion("parklot_status not in", values, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusBetween(String value1, String value2) {
            addCriterion("parklot_status between", value1, value2, "parklotStatus");
            return (Criteria) this;
        }

        public Criteria andParklotStatusNotBetween(String value1, String value2) {
            addCriterion("parklot_status not between", value1, value2, "parklotStatus");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}